﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_user.aspx.cs" Inherits="skvote.admin_user" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <%skvote.function.header(Response); %>
    <title>【单考投票系统】后台管理中心</title>
</head>
<body>
    <table border="0" cellpadding="1" cellspacing="2" width="100%" id="table1" bgcolor="#E1F0FF">
    <form action="<%FormAction();%>" id="form1" runat="server">
  <tr>
    <td>
	   <table width="100%" id="table2" cellspacing="1">
	     <tr>
          <td id="TableTitle1"> 管理主题用户(<%=GetSubject() %>)-&gt;
		<%=GetKValue()%>
		  </td>
		 </tr>
	   </table>
     </td>
  </tr>
  <tr>
    <td>      
      <asp:DataGrid ID="table2" runat="server" BorderWidth="1" Width="100%" 
          BorderColor="#BFDFF" CellSpacing="1" AllowPaging="true" 
          PagerStyle-Mode="NumericPages" AutoGenerateColumns="false" ShowFooter="true" 
          onitemcreated="table2_ItemCreated" 
            onpageindexchanged="table2_PageIndexChanged">
         <ItemStyle CssClass="out_TableTitle3" />
         <SelectedItemStyle CssClass="over_TableTitle3" />
<PagerStyle Mode="NumericPages"></PagerStyle>
       <Columns>
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle Width="5%" HorizontalAlign="Center" />
         <HeaderTemplate>ID</HeaderTemplate>
         <FooterStyle width="5%" HorizontalAlign="Center" />
         <FooterTemplate>ID</FooterTemplate>
         <ItemStyle Width="5%" HorizontalAlign="Center"/>
         <ItemTemplate>
          <%#DataBinder.Eval(Container.DataItem,"Id")%>
         </ItemTemplate>         
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle Width="5%" HorizontalAlign="Center" />
         <HeaderTemplate><asp:CheckBox runat="server" ID="ChooseAllHeader" Text="" AutoPostBack="true" /></HeaderTemplate>
         <FooterStyle Width="5%" HorizontalAlign="Center" />
         <FooterTemplate><asp:CheckBox runat="server" ID="ChooseAllFooter" Text="" AutoPostBack="true"/></FooterTemplate>
         <ItemStyle Width="5%" HorizontalAlign="Center" />
         <ItemTemplate>
          <asp:CheckBox runat="server" ID="chkItem" Text="" ToolTip='<%#DataBinder.Eval(Container.DataItem,"Id")%>'/>
         </ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle HorizontalAlign="Center" />
         <HeaderTemplate>
          姓名
         </HeaderTemplate>
         <FooterStyle HorizontalAlign="Center" />
         <FooterTemplate>
          姓名
         </FooterTemplate>
         <ItemStyle HorizontalAlign="Center" />
         <ItemTemplate>
         <a href='admin_userinfo.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id") %>'><%#DataBinder.Eval(Container.DataItem,"name")%></a>
         </ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle HorizontalAlign="Center" />
         <HeaderTemplate>
          性别
         </HeaderTemplate>
         <FooterStyle HorizontalAlign="Center" />
         <FooterTemplate>性别</FooterTemplate>
         <ItemStyle HorizontalAlign="Center" />
         <ItemTemplate><%#DataBinder.Eval(Container.DataItem,"sex") %></ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle Width="15%" HorizontalAlign="Center" />
         <HeaderTemplate>身份证号码</HeaderTemplate>
         <FooterStyle Width="15%" HorizontalAlign="Center" />
         <FooterTemplate>身份证号码</FooterTemplate>
         <ItemStyle Width="15%" HorizontalAlign="Center" />
         <ItemTemplate><%#DataBinder.Eval(Container.DataItem,"IDCard") %></ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
         <HeaderStyle Width="15%" HorizontalAlign="Center" />
         <HeaderTemplate>邮箱</HeaderTemplate>
         <FooterStyle Width="15%" HorizontalAlign="Center" />
         <FooterTemplate>邮箱</FooterTemplate>         
         <ItemStyle Width="15%" HorizontalAlign="Center" />
         <ItemTemplate><%#DataBinder.Eval(Container.DataItem,"email") %></ItemTemplate>
        </asp:TemplateColumn>        
        
        <asp:TemplateColumn HeaderStyle-CssClass="DataGrid1_Header_Footer" FooterStyle-CssClass="DataGrid1_Header_Footer">
        <HeaderStyle Width="10%" HorizontalAlign="Center"/>
        <HeaderTemplate>单项</HeaderTemplate>
        <FooterStyle Width="10%" HorizontalAlign="Center" />
        <FooterTemplate>单项</FooterTemplate>
        <ItemStyle Width="15%" HorizontalAlign="Center" />
        <ItemTemplate><a href='admin_user.aspx?act=del&id=<%#DataBinder.Eval(Container.DataItem,"ID") %>' onclick="return confirm('确认删除?')">删除 </ItemTemplate>
        </asp:TemplateColumn>
       </Columns>
      </asp:DataGrid>            
    </td>
  </tr>
  <tr>
   <td colspan="5"><asp:Button CssClass="btn" runat="server" ID="DelChoose" 
           Text="删除所选用户" onclick="DelChoose_Click" OnClientClick="return confirm('确认要删除这些用户?');" />&nbsp;<input type="text" id="k" name="k"/>&nbsp;<asp:Button 
           CssClass="btn" runat="server" ID="SearchUser" Text="搜索用户" 
           onclick="SearchUser_Click" /></td>
  </tr>
  <tr>
   <td colspan="5">总共&nbsp;<asp:Label runat="server" ID="records" Text=""></asp:Label>&nbsp;条记录&nbsp;共&nbsp;<asp:Label ID="pages" runat="server" Text=""></asp:Label>&nbsp;页&nbsp;
   第&nbsp;<asp:Label runat="server" ID="curpage" Text=""></asp:Label>&nbsp;页&nbsp;<asp:LinkButton 
           runat="server" ID="first" CommandArgument="FRIST" Text="首页" 
           onclick="first_Click"></asp:LinkButton>&nbsp;
   <asp:LinkButton runat="server" ID="prev" CommandArgument="PREV" Text="上一页" 
           onclick="first_Click"></asp:LinkButton>&nbsp;<asp:LinkButton runat="server" 
           ID="next" CommandArgument="NEXT" Text="下一页" onclick="first_Click"></asp:LinkButton>&nbsp;
   <asp:LinkButton runat="server" ID="last" CommandArgument="LAST" Text="末页" 
           onclick="first_Click"></asp:LinkButton>
   </td>
  </tr>
  </form>
</table>
</body>
</html>
